solving word problems involving rational algebraic equations